/*
 * vsconfig.h
 *
 *  Created on: Mar 25, 2013
 *      Author: andre
 */

#ifndef VSCONFIG_H_
#define VSCONFIG_H_

#define MAX_STRING 512

typedef struct VsResolution
{
	int width;
	int height;

}VsResolution;

typedef struct VsCameraConf
{
	VsResolution camRes;
	int device;
	int color;
	char label[512];

}VsCameraConf;

typedef struct VsMotionConfig
{
	int enabled;
	int numberOfBackGrounds;
	int threshold;
	VsResolution res;

	VsMotionConfig()
	{
		numberOfBackGrounds = 0;
		threshold = 0;
		enabled = 0;
	}

}VsMotionConfig;

typedef struct VsForegroundConfig
{
	VsMotionConfig motionConfig;

}VsForegroundConfig;

typedef struct VsParams
{
	char filepath[MAX_STRING];
	VsCameraConf camConf;
	VsForegroundConfig foregroundConf;
}VsParams;

class VsConfig
{
	private:

	public:
	VsConfig();
	~VsConfig();
	VsParams *params;

	int load(char *path);
	void print();

};


#endif /* VSCONFIG_H_ */
